var app = angular.module('myApp', []);
app.run(function($rootScope){//$rootScope变量名不可更改
	var t = $rootScope;
	t.name = "Ari Lerner";
});

app.controller('firstController', function($scope){
	$scope.person = {
		name : 'firstName'
	};
});

//[]写法的意义？
app.controller('firstChildController', ['$scope', function($scope) {
	$scope.person.word = "Nothing";
  $scope.sayHello = function() {
    $scope.person.word = "Hello";
  }

  $scope.childName = "Ketty";

  $scope.big = true;

  $scope.setBig = function(){
  	$scope.big = true;
  };

  $scope.setSmall = function(){
  	$scope.big = false;
  };
}]);